// import user from './modules/user'

// 完全可以把小仓库的数据映射成全局getters, =>快速访问
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token(state) {
  //   return state.user.token
  // }
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto
}
export default getters
